package com.gary.test;

import com.gary.consumer.HttpClient;
import com.gary.entity.MyInvocation;
import com.gary.service.ITicketService;

/**
 * @author pengrui3
 * @date 2020/12/11-23:31
 */
public class ClientMain {
    public static void main(String[] args) {
        MyInvocation saleTicket = new MyInvocation(ITicketService.class.getName(), "saleTicket", new Object[]{"myRPC客户端"}, new Class[]{String.class});
        String result = HttpClient.post("localhost", 8080, saleTicket);
        System.out.println(result);
    }
}
